LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := avutil
LOCAL_C_INCLUDES += resample/include
LOCAL_C_INCLUDES += resample/include/libavutil
LOCAL_C_INCLUDES += resample/include/libswresample
LOCAL_SRC_FILES := ndkLibs/$(TARGET_ARCH_ABI)/libavutil.so
include $(PREBUILT_SHARED_LIBRARY)


include $(CLEAR_VARS)
LOCAL_MODULE := swresample
LOCAL_C_INCLUDES += resample/include
LOCAL_C_INCLUDES += resample/include/libavutil
LOCAL_C_INCLUDES += resample/include/libswresample
LOCAL_SRC_FILES := ndkLibs/$(TARGET_ARCH_ABI)/libswresample.so
LOCAL_SHARED_LIBRARIES += avutil-55
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := audioresample
LOCAL_LDLIBS += -llog -landroid
LOCAL_C_INCLUDES += resample/include
LOCAL_C_INCLUDES += resample/include/libavutil
LOCAL_C_INCLUDES += resample/include/libswresample
LOCAL_SRC_FILES += resample/AudioResample.cpp
LOCAL_SRC_FILES += resample/native-lib.cpp
LOCAL_SHARED_LIBRARIES += avutil
LOCAL_SHARED_LIBRARIES += swresample
include $(BUILD_SHARED_LIBRARY)